const app = getApp();
var config = app.globalData.config;
const http = require('../../utils/http.js');
var WxParse = require('../../wxParse/wxParse.js');

// supervise/use_statis/use_statis.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    imageUrl:config.imageUrl,
    article_detail : [],
    _content : ''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    var that = this;
		http.httpPost(config.getAssistDetail, {
      growth_id : options.id
		}, function(e) {
			if (e.code == 1) {
        that.setData({
          article_detail : e.data
        })
        let _content = e.data.content;
        WxParse.wxParse('article', 'html', _content, that);
			}
		});
  }
})